package com.base.model

import com.yfree.model.YBaseModel
import org.springframework.data.mongodb.core.mapping.Document
import org.springframework.data.mongodb.core.mapping.Field
import javax.persistence.Entity
import javax.persistence.Id

class Model_Service1 : YBaseModel {
    var value = ""

    constructor(value: String) : super() {
        this.value = value
    }
}

@Entity
@Document("t_test")
class Model_MongoDB : YBaseModel {
    @Id
    @Field("id")
    var id = 0

    constructor()
    constructor(id: Int) {
        this.id = id
    }
}

class Model_MyBatisDB : YBaseModel() {
    var id: String? = null
}

class Model_Redis : YBaseModel {
    var id: String? = null

    constructor(id: String) {
        this.id = id
    }
}
